home *** CD-ROM | disk | FTP | other *** search
/ Delphi Magazine Collection 2001 / Delphi Magazine Collection 20001 (2001).iso / DISKS / Issue28 / subclass / awkMain.pas < prev    next >
Encoding:
Pascal/Delphi Source File  |  1997-09-05  |  589 b   |  35 lines

  1. unit awkMain;
  2.  
  3. interface
  4.  
  5. uses
  6.   Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs, awkworks;
  7.  
  8. type
  9.   TForm1 = class(TForm)
  10.     procedure FormCreate(Sender: TObject);
  11.   private
  12.     awkwardSubclassExample : tawkwardComp;
  13.   public
  14.     { Public declarations }
  15.   end;
  16.  
  17. var
  18.   Form1: TForm1;
  19.  
  20. implementation
  21.  
  22. {$R *.DFM}
  23.  
  24. procedure TForm1.FormCreate(Sender: TObject);
  25. begin
  26.   awkwardSubclassExample := tawkwardComp.create(self);
  27.   with awkwardSubclassExample do begin
  28.     parent := self;
  29.     top := 10;
  30.     left := 10;
  31.     end;
  32. end;
  33.  
  34. end.
  35.